<<<<<<< HEAD
import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
=======
// 权限验证 => token持久化到cookie中
import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_token'
>>>>>>> 8be26a278bb425fd6586c58ded6b6bb3573f4a6a

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
